package com.colorful.insuranceproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by handsome-Bob on 2017/8/18.
 */

public class TransactionRecordBean implements Parcelable{
    private String insuranceNo;

    private String realInsuranceMoney;

    private String insuranceTime;

    private String insuranceSrc;

    private String insuranceId;

    public TransactionRecordBean() {
    }

    public TransactionRecordBean(String insuranceNo, String realInsuranceMoney, String insuranceTime, String insuranceSrc, String insuranceId) {
        this.insuranceNo = insuranceNo;
        this.realInsuranceMoney = realInsuranceMoney;
        this.insuranceTime = insuranceTime;
        this.insuranceSrc = insuranceSrc;
        this.insuranceId = insuranceId;
    }

    public String getInsuranceNo() {
        return insuranceNo;
    }

    public void setInsuranceNo(String insuranceNo) {
        this.insuranceNo = insuranceNo;
    }

    public String getRealInsuranceMoney() {
        return realInsuranceMoney;
    }

    public void setRealInsuranceMoney(String realInsuranceMoney) {
        this.realInsuranceMoney = realInsuranceMoney;
    }

    public String getInsuranceTime() {
        return insuranceTime;
    }

    public void setInsuranceTime(String insuranceTime) {
        this.insuranceTime = insuranceTime;
    }

    public String getInsuranceSrc() {
        return insuranceSrc;
    }

    public void setInsuranceSrc(String insuranceSrc) {
        this.insuranceSrc = insuranceSrc;
    }

    public String getInsuranceId() {
        return insuranceId;
    }

    public void setInsuranceId(String insuranceId) {
        this.insuranceId = insuranceId;
    }

    @Override
    public String toString() {
        return "TransactionRecordBean{" +
                "insuranceNo='" + insuranceNo + '\'' +
                ", realInsuranceMoney='" + realInsuranceMoney + '\'' +
                ", insuranceTime='" + insuranceTime + '\'' +
                ", insuranceSrc='" + insuranceSrc + '\'' +
                ", insuranceId='" + insuranceId + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.insuranceNo);
        dest.writeString(this.realInsuranceMoney);
        dest.writeString(this.insuranceTime);
        dest.writeString(this.insuranceSrc);
        dest.writeString(this.insuranceId);
    }

    protected TransactionRecordBean(Parcel in) {
        this.insuranceNo = in.readString();
        this.realInsuranceMoney = in.readString();
        this.insuranceTime = in.readString();
        this.insuranceSrc = in.readString();
        this.insuranceId = in.readString();
    }

    public static final Creator<TransactionRecordBean> CREATOR = new Creator<TransactionRecordBean>() {
        @Override
        public TransactionRecordBean createFromParcel(Parcel source) {
            return new TransactionRecordBean(source);
        }

        @Override
        public TransactionRecordBean[] newArray(int size) {
            return new TransactionRecordBean[size];
        }
    };
}
